package com.saturday.data.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 分页参数对象
 */
@Data
@ApiModel("分页对象")
public class PageParam implements Serializable {

    @ApiModelProperty("当前页")
    @NotNull(message = "分页参数page不能为空")
    private Integer page;

    @ApiModelProperty("页大小")
    @NotNull(message = "分页参数limit不能为空")
    private Integer limit;
}
